<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.db.conn"%>
<%@ page import="java.sql.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
<jsp:include flush="true" page="${basePath}/admin/head.jsp"></jsp:include>


<script src="<%=path %>/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

 </head>

 
 <body>

 <div class="card">
        <ul class="nav nav-tabs page-tabs">
            <li class="active"><a>回复留言</a></li>
        </ul>
        <div class="tab-content" style="min-height: 450px;">

		<form  action="<%=path %>/board_Edit" method="post">
            <table style="width: 100%;" >
                <% 			conn cn=new conn();

                    String id = request.getParameter("id");
                    String sql = "select  * from board a left join users u on a.uid = u.uid  where id=" + id ;
                    ResultSet rs = cn.query(sql);
                    rs.next();
                %>
                <tr>
                    <td height="25" width="20%" align="right">用户ID：</td>
                    <td height="25" width="*" align="left" style="text-align:left"><%=rs.getString("uid") %></td>
                </tr>
                <tr>
                    <td height="25" width="20%" align="right">微信昵称：</td>
                    <td height="25" width="*" align="left" style="text-align:left"><%=rs.getString("nickname") %></td>
                </tr>
                <tr>
                    <td height="25" width="20%" align="right">微信头像：</td>
                    <td height="25" width="*" align="left" style="text-align:left"><img Width="120" Height="120" src='<%=rs.getString("photo") %>' /></td>
                </tr>
                <tr>
                    <td height="25" width="20%" align="right">姓名：</td>
                    <td height="25" width="*" align="left" style="text-align:left"><%=rs.getString("username") %></td>
                </tr>
                <tr>
                    <td height="25" width="20%" align="right">手机号码：</td>
                    <td height="25" width="*" align="left" style="text-align:left"><%=rs.getString("phone") %></td>
                </tr>
                <tr>
                    <td height="25" width="20%" align="right">电子邮箱：</td>
                    <td height="25" width="*" align="left" style="text-align:left"><%=rs.getString("email") %></td>
                </tr>
                <tr>
                    <td height="25" width="20%" align="right">留言内容：</td>
                    <td height="25" width="*" align="left" style="text-align:left"><%=rs.getString("bmess")==null?"":rs.getString("bmess") %></td>
                </tr>
                <tr>
                    <td height="25" width="20%" align="right">留言时间：</td>
                    <td height="25" width="*" align="left" style="text-align:left"><%=rs.getString("btime") %></td>
                </tr>

<tr>
<td  style=" text-align:right; width:20%;"><font style='color:red'>*&nbsp;</font>管理员回复:</td>
<td class="tbright"><div style="display:inline;float:left;">
<textarea name="txt_bans" type="text" id="txt_bans" style="width: 300px; height:80px;  "   required ><%= rs.getString("bans")==null?"":rs.getString("bans") %></textarea></div>
 </td></tr>



                <tr>
                    <td>&nbsp;</td>
                    <td align="left">
					    <input name="id" type="hidden" id="id" value='<%= request.getParameter("id") %>'> 
                         <input type="submit" name="btnAdd" value="保 存"   id="btnAdd"     class="btn btn-primary" />
                     <input name="btnReturn" type="button" value="返 回"   class="btn btn-danger"  onclick="location.href='<%=path %>/admin/board/board_Manage.jsp';"  />
                    </td>
                </tr>
            </table>
				<%
                                 if (rs != null)
                                        rs.close();
                                  if (cn != null)
                                        	cn.close();
                          	%>
		 </form>
         

        </div>
    </div>


</body>
</html>


